#include <iostream>
#include <vector>
#include <string>

class ReportGenerator {
public:
    void gatherData() {
        // 模拟数据收集
        data.push_back("Data 1");
        data.push_back("Data 2");
        data.push_back("Data 3");
    }

    void formatReport() {
        for (const auto& d : data) {
            formattedData += d + "\n";
        }
    }

    void printReport() const {
        std::cout << formattedData;
    }

private:
    std::vector<std::string> data;
    std::string formattedData;
};

int main() {
    ReportGenerator report;
    report.gatherData();
    report.formatReport();
    report.printReport();
    return 0;
}